﻿class interpreter.Token {	public var _str:String;	public var _firstchar:String;	public var closingTokens:String = " )";	public var whitespace:String = " \n\r\t";	public function getFirstChar() {		var char:String = _str.substr(0, 1);		return char;	}	public function popStr() {		_str = _str.substr(1);	}	public function chomp() {		var char:String = _str.substr(0, 1);		_str = _str.substr(1);		return char;	}	public function parse(str:String) {		return str;	}	public function removeWhitespace() {		trace("In removeWhitespace...., getFirstChar() is " + getFirstChar() );		while (whitespace.indexOf(getFirstChar())>-1) {			//if there's a leading space, chomp it			_firstchar = chomp();		}		_firstchar = _str.substr( 0, 1);		trace("and _firstchar = " + _firstchar);	}	public function toString() {	}}